package com.greydawn.TemplatePattern;

import java.util.List;

/**
 * @Author: zhongwr
 * @Create: 2021/12/12 22:41
 * @Version 1.0
 * @Description:
 */
public class Student1 extends Temlpate {

    public Student1(String name) {
        this.name = name;
    }

    @Override
    protected void printAnswer(List<String> ans) {
        System.out.println(name + ":");
        for (String an : ans) {
            System.out.println(changeABCTo123(an));
        }
    }
}
